import Vue from 'vue'
import VueRouter from 'vue-router'
// 导入路由模块（导入的时候使用的名称可以与导出时的不一样）
import home from "@/router/modules/home";
import my from "@/router/modules/my";
import select from "@/router/modules/select";
import shopping from "@/router/modules/shopping";


Vue.use(VueRouter)

const routes = [
// 首页模块的路由
...home,

// 我的模块的路由
...my,

// 优选模块的路由
...select,

// 购物模块的路由
...shopping,
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
